/**
 * Utility functions
 * @author alecmgo@gmail.com
 *
 */
public class Util {
  /**
   * Utility function to get the maximum value
   * @param numbers
   * @return
   */
  public static int getIndexOfMax(double[] numbers) {
    int maxIndex = 0;
    for(int i = 0; i < numbers.length; i++) {
      if(numbers[i] > numbers[maxIndex]) {
        maxIndex = i;
      }
    }
    return maxIndex;
  }
}